gsk/gl: use critical instead of assert in dispose
authorChristian Hergert <chergert@redhat.com>
Mon, 16 May 2022 17:50:07 +0000 (10:50 -0700)
committerChristian Hergert <chergert@redhat.com>
Mon, 16 May 2022 17:50:48 +0000 (10:50 -0700)
commit654d74bfb81fc768066181f057aaac0cf04d71ab
tree585dfbe3552a51f8bd78755908dd1b2d13c060c7
parenta26c72ef796b88c88e842994448be8242133a7ea
gsk/gl: use critical instead of assert in dispose

Instead of asserting only in debug builds (which are generally not
shipped in distributions) we should deliver a critical log-level message
so that these can be found sooner when not developing with jhbuild,
Flatpak, etc.

Also assert that we've setup the state correctly when realizing the
GskGLRenderer object.

Fixes #4625
gsk/gl/gskglrenderer.c